<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\facade\Route;

Route::rule('v1/category_list', 'v1/category_list');
Route::rule('v1/classify_list', 'v1/classify_list');
Route::rule('v1/search', 'v1/search');
Route::rule('v1/article', 'v1/article');
Route::rule('v1/chapter_list', 'v1/chapter_list');
Route::rule('v1/chapter_content', 'v1/chapter_content');
Route::rule('v1/block', 'v1/block');

//用户中心
Route::rule('user/password', 'user/password');
Route::get('user/index', 'user/index');
Route::rule('user/rack_list', 'user/rack_list');
Route::rule('user/collect_list', 'user/collect_list');
Route::rule('user/messages', 'user/messages');
Route::post('user/add_book', 'user/add_book');
Route::post('user/delete_book', 'user/delete_book');
Route::post('user/update_book', 'user/update_book');

//登录 注册 退出
Route::get('login/logout', 'login/logout');
Route::rule('login/reg', 'login/reg');
Route::rule('login/index', 'login/index');
Route::post('login/check', 'login/check');

return [];